package cn.kgc.springcloud.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 课工场
 * @date 2025/1/16
 * @description
 */
@FeignClient("ACCOUNTSERVICE")
public interface AccountClient {

    @GetMapping("/account/debit")
    void debit(@RequestParam("userId") String userId, @RequestParam("money")Integer money);
}
